// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
module.exports = {
  devServer: {
    proxy: {
      "/list": {
        target: "http://localhost:3000",
        changeOrigin: true,
        // pathRewrite: {
        //   '^/api': ''
        // }
      },
      "/api": {
        target: "http://api.map.baidu.com",
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    },
  },
 /*  configureWebpack: {
    plugins: [
        new BundleAnalyzerPlugin({})
      ]
  } */
};

